ci=[
['a','000000'],['b','000001'],['c','000010'],['d','000011'],['e','000100'],['f','000101'],
['g','000110'],['h','000111'],['i','001000'],['j','001001'],['k','001010'],['l','001011'],
['m','001100'],['n','001101'],['o','001110'],['p','001111'],['q','010000'],['r','010001'],
['s','010010'],['t','010011'],['u','010100'],['v','010101'],['w','010110'],['x','010111'],
['y','011000'],['z','011001'],['0','011010'],['1','011011'],['2','011100'],['3','011101'],
['4','011110'],['5','011111'],['6','100000'],['7','100001'],['8','100010'],['9','100011'],
[',','100100'],['.','100101'],[' ','100110'],
]
#for i in range(39):
#    print(f"{ci[i][0]}={ci[i][1]}")
ju=['i','t',' ','i','s',' ','o','k','a','y',',',' ','i',' ','j','u','s','t',' ','w','a','n','t',' ','t','o',' ','d','i','e','.']
#ju=['a',' ','l','o','n','g',' ','t','i','m','e',' ','a','g','o',',',' ','t','h','e','r','e',' ','w','a','s',' ','a',' ','k','i']
w=[]
l=len(ju)
print(l)
for j in range(31):
    for i in range(39):
        if ju[j]==ci[i][0]:
            w.append(ci[i][1])
            #print(w)
#print (w)


a=['001000', '010011', '100110', '001000', '010010', '100110', '001110', '001010', '000000', '011000', '100100', '100110', '001000', '100110', '001001', '010100', '010010', '010011', '100110', '010110', '000000', '001101', '010011', '100110', '010011', '001110', '100110', '000011', '001000', '000100', '100101']
b=['000000', '100110', '001011', '001110', '001101', '000110', '100110', '010011', '001000', '001100', '000100', '100110', '000000', '000110', '001110', '100100', '100110', '010011', '000111', '000100', '010001', '000100', '100110', '010110', '000000', '010010', '100110', '000000', '100110', '001010', '001000']
c=['001000', '111001', '110001', '010110', '011111', '101100', '110100', '011101', '001000', '100100', '101000', '1001100', '001000', '101100', '010111', '111100', '111000', '100110', '101101', '011010', '010001', '010001', '111001', '111100', '010011', '100000', '1001100', '000011', '101110', '001110', '101101']
for i in range (31):
    #c.append(str(int(a[i])+int(b[i])))
    print(b[i],end=' ')
print(c)



